package com.example.module;

import com.bumptech.glide.annotation.GlideExtension;
import com.bumptech.glide.annotation.GlideOption;
import com.bumptech.glide.request.BaseRequestOptions;
import com.example.myapplication.R;

@GlideExtension
public class MyAppExtension {
    private MyAppExtension() {
    }
    @GlideOption
    public static BaseRequestOptions<?> defaultImg(BaseRequestOptions<?> options){
      return options
              .placeholder(R.drawable.sqrt)
              .error(R.drawable.square_root_variable)
              .fallback(R.drawable.square_root_variable);
    }
}
